package com.wondertek.liveroom;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.ImageView;

public class FragmentLivePlayer extends Fragment implements OnClickListener {
	private View view = null;
	private ImageView ivBack = null;
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
	}

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		view = inflater.inflate(R.layout.fragment_live_player, container, false);
		initCtrl();
		return view;
	}
	
	private void initCtrl() {
		this.ivBack = (ImageView) view.findViewById(R.id.iv_live_back);
		this.ivBack.setOnClickListener(this);
	}

	@Override
	public void onClick(View v) {
		int id = v.getId();
		switch(id) {
		case R.id.iv_live_back:
			getActivity().finish();
			break;
		}
	}
}
